<%@ tag import="com.aiwei.tdjk.utils.SpringUtils" %>
<%@ tag import="com.aiwei.tdjk.service.UserService" %>
<%@ tag import="com.aiwei.tdjk.entity.User" %>
<%@ tag import="org.springframework.util.StringUtils" %>
<%@ tag pageEncoding="UTF-8"%>
<%@ attribute name="id" type="java.lang.Long" required="true" description="当前要展示的用户的id" %>
<%!private UserService userService;%>
<%
    if(userService == null) {
        userService = SpringUtils.getBean(UserService.class);
    }
    if(StringUtils.isEmpty(id)){
        out.write("");
    }else {
        User user = userService.get(id);
        if(StringUtils.isEmpty(user)){
            out.write("");
        }else {
            out.write(user.getFullName());
        }
    }
%>
